package com.halflife.parameter.template;

import com.alibaba.fastjson.annotation.JSONField;

public class ParameterJson {
    private Integer id;
    private Integer iconId;
    private String svgInfo;
    private Double angle;
    private Double zoomRatio;
    private Double height;
    private Double width;
    private Double theight;
    private Double twidth;
    private Double x;
    private Double y;
    private Double currentX;
    private Double currentY;
    private Double iconX;
    private Double iconY;
    private Double iconZoomRatio;

    public Parameter convertToBo() {
        Parameter parameter = new Parameter();
        parameter.setId(this.getId());
        parameter.setIconId(this.getIconId());
        parameter.setValid(true);
        parameter.setSvgInfo(this.getSvgInfo());
        return parameter;
    }
    public void parseParameter(Parameter parameter) {
        this.setId(parameter.getId());
        this.setIconId(parameter.getIconId());
        this.setSvgInfo(parameter.getSvgInfo());

    }

    public String getSvgInfo() {
        return svgInfo;
    }

    public void setSvgInfo(String svgInfo) {
        this.svgInfo = svgInfo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getIconId() {
        return iconId;
    }

    public void setIconId(Integer iconId) {
        this.iconId = iconId;
    }

    public Double getAngle() {
        return angle;
    }

    public void setAngle(Double angle) {
        this.angle = angle;
    }

    public Double getZoomRatio() {
        return zoomRatio;
    }

    public void setZoomRatio(Double zoomRatio) {
        this.zoomRatio = zoomRatio;
    }

    public Double getHeight() {
        return height;
    }

    public void setHeight(Double height) {
        this.height = height;
    }

    public Double getWidth() {
        return width;
    }

    public void setWidth(Double width) {
        this.width = width;
    }

    public Double getTheight() {
        return theight;
    }

    public void setTheight(Double theight) {
        this.theight = theight;
    }

    public Double getTwidth() {
        return twidth;
    }

    public void setTwidth(Double twidth) {
        this.twidth = twidth;
    }

    public Double getX() {
        return x;
    }
    public void setX(Double x) {
        this.x = x;
    }

    public Double getY() {
        return y;
    }

    public void setY(Double y) {
        this.y = y;
    }

    public Double getCurrentX() {
        return currentX;
    }

    public void setCurrentX(Double currentX) {
        this.currentX = currentX;
    }

    public Double getCurrentY() {
        return currentY;
    }

    public void setCurrentY(Double currentY) {
        this.currentY = currentY;
    }

    public Double getIconX() {
        return iconX;
    }

    public void setIconX(Double iconX) {
        this.iconX = iconX;
    }

    public Double getIconY() {
        return iconY;
    }

    public void setIconY(Double iconY) {
        this.iconY = iconY;
    }

    public Double getIconZoomRatio() {
        return iconZoomRatio;
    }

    public void setIconZoomRatio(Double iconZoomRatio) {
        this.iconZoomRatio = iconZoomRatio;
    }
}
